<div class="main-container" id="main-container" xmlns:th="http://www.thymeleaf.org">
    <div class="main-container-inner">
        <div class="main-content">
            <div class="page-content">
                <div class="row">
                    <form class="form-horizontal"  role="form" id="add_form" >
                        <input type="hidden" class="form-control" id="orgFCode" name="orgFCode" th:attr="value=${id}"/>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label for="orgName" class="col-sm-3 control-label">上级机构</label>
                                <div class="col-sm-7">
                                    <input type="text" class="form-control"
                                          readonly id="myName" name="myName" th:attr="value=${myName}"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="rentCode" class="col-sm-3 control-label">所属客户</label>
                                <div class="col-sm-7">
                                    <select class="form-control" id="rentCode" name="rentCode" >
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="orgName" class="col-sm-3 control-label">机构名称</label>
                                <div class="col-sm-7">
                                    <input type="text" class="form-control" id="orgName" name="orgName" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="orgUser" class="col-sm-3 control-label">联系人</label>
                                <div class="col-sm-7">
                                    <input type="text" class="form-control" id="orgUser" name="orgUser" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="orgPhone" class="col-sm-3 control-label">联系电话</label>
                                <div class="col-sm-7">
                                    <input type="text" class="form-control" id="orgPhone" name="orgPhone" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="orgAddress" class="col-sm-3 control-label">机构地址</label>
                                <div class="col-sm-7">
                                    <input type="text" class="form-control" id="orgAddress" name="orgAddress" />
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        ajaxs('./DRent/getRentKeyValue', 'GET', null, true, function (typedata) {
            for (var i = 0; i < typedata.length; i++) {
                $("#rentCode").append("<option value=" + typedata[i].key + ">" + typedata[i].value + "</option>")
            }
        });
    });
    function form_sub() {
        ajaxs('./DOrg', 'POST',$("#add_form").serialize(), true, function(data){
            $("#im_unique_dlg").modal('hide');
            layer.msg(data.message);
            initTree();
        });
    }
</script>